﻿<%@ Page Language="C#" MasterPageFile="~/defaultMaster.master" AutoEventWireup="true" CodeFile="buy.aspx.cs" Inherits="buy" Title="Mua" %>

<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="5" style="width: 100%; height: 87px;">
        <tr>
            <td rowspan="1" style="padding-left: 5px; height: 24px;" valign="middle" colspan="2">
                <asp:SiteMapPath ID="SiteMapPath1" runat="server" Font-Names="Verdana" Font-Size="8pt"
                    PathSeparator=" : ">
                    <PathSeparatorStyle Font-Bold="True" ForeColor="#990000" />
                    <CurrentNodeStyle ForeColor="#333333" />
                    <NodeStyle Font-Bold="True" ForeColor="#990000" />
                    <RootNodeStyle Font-Bold="True" ForeColor="#FF8000" />
                </asp:SiteMapPath>
            </td>
        </tr>
        <tr>
            <td rowspan="1" style="width: 200px" valign="top">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 200px">
                    <tr>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 200px">
                                <tr>
                                    <td style="width: 35px; height: 30px">
                                        <img alt="" src="imgs/header_left.gif" /></td>
                                    <td class="header">
                                        <span class="HeaderText">Danh mục</span>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="body" style="height: 20px">
                            <asp:Label ID="lblCatRs" runat="server" Text='<div align="center"><br/><br/>Không có danh mục con<br/><br/><br/></div>' Visible="false"></asp:Label>
                            <asp:DataList ID="dlCats" runat="server" Width="100%">
                                <ItemTemplate>
                                    <table border="0" cellpadding="0" cellspacing="0" style="width: 185px">
                                        <tr>
                                            <td style="width: 30px; height: 24px;" align="center">
                                                <img src="imgs/arrow_orange.jpg" alt="" /></td>
                                            <td style="height: 24px; border-bottom: #ccc 1px dotted;">
                                                <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("CatName") %>' NavigateUrl='<%# "buy.aspx?CatID=" + Eval("CatID") %>' CssClass="Menu"></asp:HyperLink></td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:DataList></td>
                    </tr>
                    <tr>
                        <td class="Verdana3Black">&nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td style="width: 35px; height: 30px">
                                        <img alt="" src="imgs/header_left.gif" /></td>
                                    <td class="header" style="height: 30px">
                                        <span class="HeaderText">Tìm theo tên sản phẩm</span></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="body" style="height: 20px">
                            <table border="0" cellpadding="3" cellspacing="0" style="width: 100%">
                                <tr>
                                    <td style="width: 152px">
                                        <asp:TextBox ID="txtKw" runat="server" CssClass="Verdana8Black" Width="145px"></asp:TextBox></td>
                                    <td align="center" style="width: 32px">
                                        <asp:Button ID="btnSearch" runat="server" CssClass="searchButton" Text="1" OnClick="btnSearch_Click" PostBackUrl="~/buy.aspx" ToolTip="Tìm kiếm" /></td>
                                </tr>
                                <tr>
                                    <td align="right" style="padding-right: 9px; width: 152px;">
                                        <asp:HyperLink ID="HyperLink2" runat="server" CssClass="ProName" NavigateUrl="~/advSearch.aspx">Tìm nâng cao</asp:HyperLink>&nbsp;</td>
                                    <td align="right" style="padding-right: 9px">
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" style="padding-right: 9px; width: 152px">
                                    </td>
                                    <td align="right" style="padding-right: 9px">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td valign="top" class="body"><rad:RadAjaxPanel id="radAjaxPnAddCategory" runat="server" width="100%" HorizontalAlign="NotSet" LoadingPanelID="AjaxLoadingPanel2" ScrollBars="None">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td style="width: 35px; height: 30px">
                                        <img alt="" src="imgs/header_left.gif" /></td>
                                    <td class="header" style="height: 30px">
                                        <span class="HeaderText">Kết quả tìm kiếm</span>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <asp:Label ID="lblSearchRs" runat="server" Text='<div align="center"><br/><br/>Không tìm thấy sàn nào !!!<br/><br/><br/></div>'></asp:Label>
                            <asp:DataList ID="dlFloors" runat="server" CellSpacing="5" RepeatColumns="2"
                                RepeatDirection="Horizontal" Width="100%">
                                <ItemTemplate>
                                    <table align="center" border="0" cellpadding="3" cellspacing="0" style="width: 270px;
                                        border-right: #ccc 1px dotted; border-top: #ccc 1px dotted; border-left: #ccc 1px dotted;
                                        border-bottom: #ccc 1px dotted;">
                                        <tr>
                                            <td align="center">
                                                <asp:HyperLink ID="HyperLink1" runat="server" ImageUrl='<%# "imgs/floors/" + Eval("ProID") + "/main_thumbs.jpg" %>'
                                                    NavigateUrl='<%# "floordetails.aspx?proId=" + Eval("ProID") %>' Text='<%# Eval("ProName") %>' Target="_blank"></asp:HyperLink></td>
                                        </tr>
                                        <tr>
                                            <td style="padding-left: 5px">
                                                Tên:&nbsp;<strong>
                                                    <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl='<%# "floordetails.aspx?proId=" + Eval("ProID") %>'
                                                        Text='<%# Eval("ProName") %>' CssClass="ProName" Target="_blank"></asp:HyperLink></strong></td>
                                        </tr>
                                        <tr>
                                            <td style="padding-left: 5px">
                                                Người bán:
                                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("Seller") %>'></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td style="padding-left: 5px">
                                                Giá hiện thời:
                                                <asp:Label ID="Label1" runat="server" CssClass="Verdana10RedBold" Text='<%# string.Format("{0:c0}", Eval("CurBid")) %>'></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td style="padding-left: 5px">
                                                Số lượng khách hàng:
                                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("Buyers") %>'></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td style="padding-left: 5px">
                                                Dự kiến kết thúc:
                                                <asp:Label ID="Label4" runat="server" Text='<%# Eval("EFD") %>'></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td style="padding-left: 5px">
                                                <asp:Label ID="lblQuick" runat="server" CssClass="Verdana8Orange" Font-Bold="True"
                                                    Text="Cho phép mua nhanh" Visible='<%# Eval("Quick") %>'></asp:Label>
                                                <asp:Label ID="lblNotQuick" runat="server" CssClass="Verdana8Olive" Font-Bold="True"
                                                    Text="Không có mua nhanh" Visible='<%# !(bool)Eval("Quick") %>'></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td style="padding-left: 5px">
                                                Mô tả:
                                                <asp:Label ID="Label5" runat="server" Text='<%# Eval("TinyDes") %>'></asp:Label></td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:DataList>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" valign="top" style="height: 16px">
                            <table border="0" cellpadding="5" cellspacing="0" style="width: 100%">
                                <tr>
                                    <td style="width: 32px; height: 32px">
                                        <asp:ImageButton ID="btnPrev" runat="server" ImageUrl="~/imgs/Prev.jpg" ToolTip="Trang trước" OnClick="btnPrev_Click" /></td>
                                    <td align="center">
                                        <asp:Label ID="lblPrefix" runat="server" CssClass="Verdana10OrangeBold" Text="Trang: "></asp:Label>
                                        <asp:Label ID="lblCurPage" runat="server" CssClass="Verdana10OrangeBold" Text="1"></asp:Label>
                                        <asp:Label ID="lblSuffix" runat="server" CssClass="Verdana10OrangeBold" Text="/"></asp:Label>
                                        <asp:Label ID="lblPages" runat="server" CssClass="Verdana10OrangeBold">0</asp:Label>
                                    </td>
                                    <td style="width: 32px; height: 32px">
                                        <asp:ImageButton ID="btnNext" runat="server" ImageUrl="~/imgs/Next.jpg" OnClick="btnNext_Click" ToolTip="Trang sau" /></td>
                                </tr>
                            </table>
                       </td>
                    </tr>
                </table>
            </rad:RadAjaxPanel></td>
        </tr>
        <tr>
            <td colspan="2" rowspan="1" valign="top">
                <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"/>
            </td>
        </tr>
    </table>
    <rad:AjaxLoadingPanel ID="AjaxLoadingPanel2" runat="server" Height="75px" Width="75px">
        <br />
        <br />
        <asp:Image ID="Image2" runat="server" AlternateText="Loading..." ImageUrl="~/imgs/ajaxLoading2.gif" />
    </rad:AjaxLoadingPanel>
</asp:Content>

